<template>
    <div>
        Home
        <button @click="clickHandler">跳转</button>
        <p>hello</p>
        <p>hello</p>
        <p>hello</p>
    </div>
</template>
<script>
export default {
    name:'Home',
    methods:{
        clickHandler(event){
            // this.$router.push('/enjoy/hotnews/hahaha')
            // replace -> push -> go
            this.$router.push({ name:"Enjoy" ,params:{ content:'come on' }})
        }
    }
}
</script>
<style scoped>

p{
    height: 500px;
}

</style>
